interface ExchangeGoodsAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface ExchangeGoodsAPIData {
  id: string
}

export function exchangeGoodsAPI(data: ExchangeGoodsAPIData, token: string) {
  return httpInstance.post<ExchangeGoodsAPIResData, ExchangeGoodsAPIData>(
    '/api/score/createorder',
    data,
    { headers: { token } },
  )
}
